package com.chorye.mongo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * @Company: 北京XXXX有限公司
 * @Author JiangYy
 * @Title: SecondaryMongoConfig
 * @Description: 从数据源配置
 * @Date 2018/12/24 15:57
 */
@Configuration
@EnableMongoRepositories(basePackages = "com.chorye.mongo.dao.secondary", mongoTemplateRef = SecondaryMongoConfig.MONGO_TEMPLATE)
public class SecondaryMongoConfig {
    protected static final String MONGO_TEMPLATE = "secondaryMongoTemplate";
}
